package com.tsk.base.config;

import com.tsk.base.result.ResultSwitch;

/**
 * @author: 黄嘉振
 * @create: 2023/4/20 9:52
 * @description:
 **/
public class ResultConstant {

    private static ResultSwitch RESULT_SWITCH = new ResultSwitch(false, null);

    public static void initResultSwitch(ResultSwitch resultSwitch) {
        RESULT_SWITCH = resultSwitch;
    }
    public static boolean getSwitch() {
        return RESULT_SWITCH.isEnable();
    }

    public static String getBasePath() {
        return RESULT_SWITCH.getBasePath();
    }
}
